<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
	<title>模板标签</title>
	<style type="text/css">
	
	ul {
		list-style: none;
		margin: 10px 0;
		border: 1px dotted #aaa;
	}

	li{
		widows: 300px;
		padding: 5px 0;
	}

    </style>
</head>
<body>
	<div class="container">
		<h1>模板标签</h1>
		<div id="box">
			
		</div>
	</div>
<script src="https://cdn.bootcss.com/decimal.js/10.2.0/decimal.min.js"></script>

<script src="https://cdn.staticfile.org/jquery/3.2.0/jquery.js"></script>
<script src="https://cdn.bootcss.com/moment.js/2.24.0/moment.min.js"></script>

<script type="text/javascript">

 
var str = '2021-1-13 06:20:54'
var arr = str.split(/[-: ]/)
console.log(Date.UTC(...arr))

var str =  tag `
现在是北京时间${str},表达式处理，${`第一个元素 ${arr[0]}!!! ${arr.join('')} 完结`}
`
console.log(str)
function tag(strings, str, arr0, join, ...args) {
	console.log(strings)
	console.log( str, arr0)
	console.log(args)
	return 'hello'
}



</script>
</body>
</html>

